package com.shujushow.chapter02;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.builder.SpringApplicationBuilder;
import org.springframework.boot.context.web.SpringBootServletInitializer;
import org.springframework.context.annotation.ComponentScan;

/**
 * Created by xinshu on 2016/4/1.
 */
@SpringBootApplication
@ComponentScan(value="com.shujushow")
public class Chapter02Application extends SpringBootServletInitializer {

    @Override
    protected SpringApplicationBuilder configure(SpringApplicationBuilder application){

        return application.sources(Chapter02Application.class);
    }

    public static void main(String[] args) throws Exception{
        SpringApplication.run(Chapter02Application.class, args);
    }
}
